package com.springboot.wisdom.serviceApi.user.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * ClassName: LoginUserVO
 *
 * @Author: WangYiHai
 * @Date: 2020/5/19 11:58
 * @Description: TODO
 */
@Data
@ApiModel(description = "登录信息类")
public class LoginUserVO {

    @NotBlank(message = "请输入用户账号")
    @Size(max = 50, message = "账号长度不能大于50")
    @ApiModelProperty(value = "用户名/账号/工号", required = true)
    private String user;

    @NotBlank(message = "请输入密码")
    @Size(max = 20, message = "密码长度不能大于20")
    @ApiModelProperty(value = "密码", required = true)
    private String password;
}